<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">截图凭证:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="" class="form-control" size="50" name="row[image]" type="text" value="{$row.image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audit_status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-audit_status" class="form-control selectpicker" name="row[audit_status]">
                    <option value="0">请选择</option>
                    <option value="2" {if $row.audit_status == 2}selected{/if}>通过</option>
                    <option value="3" {if $row.audit_status == 3}selected{/if}>驳回</option>
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reason" class="form-control" name="row[reason]" type="text" value="{$row.reason}">
        </div>
    </div>

    {if $row.audit_status == 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audit_upload_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-audit_upload_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" readonly data-use-current="true" type="text" value="{:$row.audit_upload_time?datetime($row.audit_upload_time):''}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
    {else /}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audit_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-audit_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" readonly data-use-current="true" type="text" value="{:$row.audit_time?datetime($row.audit_time):''}">
        </div>
    </div>
    {/if}

</form>
